package com.qfedu.constants;

public enum RedisKeyEnum {


    //验证码的key
    KEY_CODE("code:%s",600),
    //积分信息的key  对应的hash类型
    KEY_POINT_INFO("pointInfo",31*24*3600),
    //签到的key, sign:年月:用户id   对应bitmap
    KEY_SIGN("sign:%s:%s",60000);




    //
    private String key;
    //
    private long timeout;

    private RedisKeyEnum(String key, long timeout){
        this.key=key;
        this.timeout=timeout;
    }

    public String getKey() {
        return key;
    }

    public long getTimeout() {
        return timeout;
    }
}
